package com.blame.javacup.simulador;

import org.javahispano.javacup.model.Tactic;

public class ResultadoDuelo implements Comparable<ResultadoDuelo> {

	Class<? extends Tactic> local, visitante;
	int pg; int pgp; int pp; int ppp; int pe; int gtl;
	int gtv; long posesion; 
	
	public ResultadoDuelo(Class<? extends Tactic> local, Class<? extends Tactic> visitante, int pg, int pgp, int pp, int ppp, int pe, int gtl,
			int gtv, long posesion) {
		super();
		this.local = local;
		this.visitante = visitante;
		this.pg = pg;
		this.pgp = pgp;
		this.pp = pp;
		this.ppp = ppp;
		this.pe = pe;
		this.gtl = gtl;
		this.gtv = gtv;
		this.posesion = posesion;
	}

	public int getPg() {
		return pg;
	}

	public int getPgp() {
		return pgp;
	}

	public int getPp() {
		return pp;
	}

	public int getPpp() {
		return ppp;
	}

	public int getPe() {
		return pe;
	}

	public int getGtl() {
		return gtl;
	}

	public int getGtv() {
		return gtv;
	}

	public long getPosesion() {
		return posesion;
	}

	public Class<? extends Tactic> getLocal() {
		return local;
	}

	public Class<? extends Tactic> getVisitante() {
		return visitante;
	}

	@Override
	public int compareTo(ResultadoDuelo other) {
		return other.pp - this.pp;
	}

	@Override
	public boolean equals(Object o) {
		if(!(o instanceof ResultadoDuelo))
			return false;
		
		ResultadoDuelo other = (ResultadoDuelo) o;
		return this.pp == other.pp;
	}

}
